﻿using _2112A_2_MES._wangweihao;
using _2112A_2_MES._XiangHe;
using _2112A_2_MES.SuJiaHaos;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Volo.Abp.Application.Services;

namespace _2112A_2_MES.ChuBoWens
{
    public interface IMdVendorService : IApplicationService
    {
        /// <summary>
        /// 获取客户信息
        /// </summary>
        /// <param name="vendorcode">客户编码</param>
        /// <param name="vendorname">客户名称</param>
        /// <param name="vendornick">客户简称</param>
        /// <param name="vendoren">客户简称</param>
        /// <returns>返回客户信息的泛型集合</returns>
        Task<InterSelect<object>> GetMdVendorList(string? vendorcode, string? vendorname, string? vendornick, string? vendoren, int pageIndex, int pageSize);

        /// <summary>
        /// 新增供应商
        /// </summary>
        /// <param name="mdVendor"></param>
        /// <returns></returns>
        Task<int> AddMdVendor(MdVendor mdVendor);

        /// <summary>
        /// 删除供应商
        /// </summary>
        /// <param name="id"></param>
        /// <returns></returns>
        Task<int> DeleteMdVendor(int id);

        /// <summary>
        /// 获取客户信息
        /// </summary>
        /// <param name="id"></param>
        /// <returns></returns>
        Task<MdVendor> GetMdVendorBuBy(int id);

        /// <summary>
        /// 修改
        /// </summary>
        /// <param name="mdVendor"></param>
        /// <returns></returns>
        Task<int> UpdateMdVendor(MdVendorDTO mdVendor);
    }
}
